package com.yl.auth.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author L
 * @since 2023-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("hulidengjibiangeng")
@ApiModel("护理等级变更实体类")
public class HuLiDengJiBianGeng implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @ApiModelProperty("主键Id")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 老人外键
     */
    @ApiModelProperty("老人外键")
    private Long laorenId;

    /**
     * 护理等级
     */
    @ApiModelProperty("护理等级")
    private String nursingGrade;

    /**
     * 申请人
     */
    @ApiModelProperty("申请人")
    private String name;

    /**
     * 申请时间
     */
    @ApiModelProperty("申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss")
    private Date putindate;

    /**
     * 状态
     */
    @ApiModelProperty("状态 0待审批 1审批通过 2审批拒绝")
    private Integer state;

    @ApiModelProperty("变更原因")
    private String content;

    /**
     * 软删除
     */
    @ApiModelProperty("软删除 0未删除 1已删除")
    @TableLogic
    @TableField
    private Integer isDelete;



    @TableField(exist = false)
    //老人对象
    private Laoren laoren;

    @TableField(exist = false)
    @ApiModelProperty("护理更换床位信息")
    private String chuangWeiHuLi;

    @TableField(exist = false)
    @ApiModelProperty("床位号信息")
    private String chuangWeiBed;

    @TableField(exist = false)
    private Integer roomNo;

}
